package com.xwj.config;

import com.xwj.annotation.RpcService;
import org.slf4j.Logger;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.annotation.Configuration;

import java.util.Map;

/**
 * @author xwj
 * @date 2020/7/21
 */
@Configuration
public class ProviderAutoConfiguration {
    private static Logger logger = LoggerFactory.getLogger(ProviderAutoConfiguration.class);

    @Autowired
    private ApplicationContext applicationContext;
    @Autowired
    private RpcProperties rpcProperties;

    public void init() {
        Map<String, Object> beanMap = applicationContext.getBeansWithAnnotation(RpcService.class);
    }
}
